/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package cn.apestar.modules.meibang.meibanguserskillstype.entity;

import cn.apestar.common.persistence.DataEntity;
import cn.apestar.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

/**
 * 技师技能类型Entity
 *
 * @author yudw
 * @version 2017-05-03
 */
public class MeibangUserSkillsType extends DataEntity<MeibangUserSkillsType> {

    private static final long serialVersionUID = 1L;
    private String type;    // 类别
    private String level;    // 技师等级
    private String level1;
    private String level2;
    private String skills;    // 技师技能
    private User user;    // 技师ID
    private String remark;    // 备注

    public String getLevel1() {
        return level1;
    }

    public void setLevel1(String level1) {
        this.level1 = level1;
    }

    public String getLevel2() {
        return level2;
    }

    public void setLevel2(String level2) {
        this.level2 = level2;
    }

    public MeibangUserSkillsType() {
        super();
    }

    public MeibangUserSkillsType(String id) {
        super(id);
    }

    @Length(min = 0, max = 1, message = "类别长度必须介于 0 和 1 之间") public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Length(min = 0, max = 1, message = "技师等级长度必须介于 0 和 1 之间") public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    @Length(min = 0, max = 255, message = "技师技能长度必须介于 0 和 255 之间") public String getSkills() {
        return skills;
    }

    public void setSkills(String skills) {
        this.skills = skills;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Length(min = 0, max = 255, message = "备注长度必须介于 0 和 255 之间") public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}